package com.ren.mianshi;

import android.app.Application;

import androidx.room.Room;

import com.ren.mianshi.db.RoomManager;

public class App extends Application {

    private static App instance;

    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        initDb();
    }

    public static App getInstance() {
        return instance;
    }

    private void initDb() {
        RoomManager.getInstance().init();
    }

}
